home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / compress / gnucpio.zip / CONFIGUR < prev    next >
Text File  |  1995-12-20  |  59KB  |  2,211 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.7 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. mandir='${prefix}/man'
  48.  
  49. # Initialize some other variables.
  50. subdirs=
  51. MFLAGS= MAKEFLAGS=
  52.  
  53. ac_prev=
  54. for ac_option
  55. do
  56.  
  57.   # If the previous option needs an argument, assign it.
  58.   if test -n "$ac_prev"; then
  59.     eval "$ac_prev=\$ac_option"
  60.     ac_prev=
  61.     continue
  62.   fi
  63.  
  64.   case "$ac_option" in
  65.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  66.   *) ac_optarg= ;;
  67.   esac
  68.  
  69.   # Accept the important Cygnus configure options, so we can diagnose typos.
  70.  
  71.   case "$ac_option" in
  72.  
  73.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  74.     ac_prev=bindir ;;
  75.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  76.     bindir="$ac_optarg" ;;
  77.  
  78.   -build | --build | --buil | --bui | --bu)
  79.     ac_prev=build ;;
  80.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  81.     build="$ac_optarg" ;;
  82.  
  83.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  84.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  85.     ac_prev=cache_file ;;
  86.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  87.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  88.     cache_file="$ac_optarg" ;;
  89.  
  90.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  91.     ac_prev=datadir ;;
  92.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  93.   | --da=*)
  94.     datadir="$ac_optarg" ;;
  95.  
  96.   -disable-* | --disable-*)
  97.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  98.     # Reject names that are not valid shell variable names.
  99.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  100.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  101.     fi
  102.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  103.     eval "enable_${ac_feature}=no" ;;
  104.  
  105.   -enable-* | --enable-*)
  106.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  107.     # Reject names that are not valid shell variable names.
  108.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  109.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  110.     fi
  111.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  112.     case "$ac_option" in
  113.       *=*) ;;
  114.       *) ac_optarg=yes ;;
  115.     esac
  116.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  117.  
  118.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  119.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  120.   | --exec | --exe | --ex)
  121.     ac_prev=exec_prefix ;;
  122.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  123.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  124.   | --exec=* | --exe=* | --ex=*)
  125.     exec_prefix="$ac_optarg" ;;
  126.  
  127.   -gas | --gas | --ga | --g)
  128.     # Obsolete; use --with-gas.
  129.     with_gas=yes ;;
  130.  
  131.   -help | --help | --hel | --he)
  132.     # Omit some internal or obsolete options to make the list less imposing.
  133.     # This message is too long to be a string in the A/UX 3.1 sh.
  134.     cat << EOF
  135. Usage: configure [options] [host]
  136. Options: [defaults in brackets after descriptions]
  137. Configuration:
  138.   --cache-file=FILE       cache test results in FILE
  139.   --help                  print this message
  140.   --no-create             do not create output files
  141.   --quiet, --silent       do not print \`checking...' messages
  142.   --version               print the version of autoconf that created configure
  143. Directory and file names:
  144.   --prefix=PREFIX         install architecture-independent files in PREFIX
  145.                           [$ac_default_prefix]
  146.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  147.                           [same as prefix]
  148.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  149.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  150.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  151.   --datadir=DIR           read-only architecture-independent data in DIR
  152.                           [PREFIX/share]
  153.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  154.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  155.                           [PREFIX/com]
  156.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  157.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  158.   --includedir=DIR        C header files in DIR [PREFIX/include]
  159.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  160.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  161.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  162.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  163.   --program-prefix=PREFIX prepend PREFIX to installed program names
  164.   --program-suffix=SUFFIX append SUFFIX to installed program names
  165.   --program-transform-name=PROGRAM
  166.                           run sed PROGRAM on installed program names
  167. EOF
  168.     cat << EOF
  169. Host type:
  170.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  171.   --host=HOST             configure for HOST [guessed]
  172.   --target=TARGET         configure for TARGET [TARGET=HOST]
  173. Features and packages:
  174.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  175.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  176.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  177.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  178.   --x-includes=DIR        X include files are in DIR
  179.   --x-libraries=DIR       X library files are in DIR
  180. EOF
  181.     if test -n "$ac_help"; then
  182.       echo "--enable and --with options recognized:$ac_help"
  183.     fi
  184.     exit 0 ;;
  185.  
  186.   -host | --host | --hos | --ho)
  187.     ac_prev=host ;;
  188.   -host=* | --host=* | --hos=* | --ho=*)
  189.     host="$ac_optarg" ;;
  190.  
  191.   -includedir | --includedir | --includedi | --included | --include \
  192.   | --includ | --inclu | --incl | --inc)
  193.     ac_prev=includedir ;;
  194.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  195.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  196.     includedir="$ac_optarg" ;;
  197.  
  198.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  199.     ac_prev=infodir ;;
  200.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  201.     infodir="$ac_optarg" ;;
  202.  
  203.   -libdir | --libdir | --libdi | --libd)
  204.     ac_prev=libdir ;;
  205.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  206.     libdir="$ac_optarg" ;;
  207.  
  208.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  209.   | --libexe | --libex | --libe)
  210.     ac_prev=libexecdir ;;
  211.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  212.   | --libexe=* | --libex=* | --libe=*)
  213.     libexecdir="$ac_optarg" ;;
  214.  
  215.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  216.   | --localstate | --localstat | --localsta | --localst \
  217.   | --locals | --local | --loca | --loc | --lo)
  218.     ac_prev=localstatedir ;;
  219.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  220.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  221.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  222.     localstatedir="$ac_optarg" ;;
  223.  
  224.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  225.     ac_prev=mandir ;;
  226.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  227.     mandir="$ac_optarg" ;;
  228.  
  229.   -nfp | --nfp | --nf)
  230.     # Obsolete; use --without-fp.
  231.     with_fp=no ;;
  232.  
  233.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  234.   | --no-cr | --no-c)
  235.     no_create=yes ;;
  236.  
  237.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  238.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  239.     no_recursion=yes ;;
  240.  
  241.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  242.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  243.   | --oldin | --oldi | --old | --ol | --o)
  244.     ac_prev=oldincludedir ;;
  245.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  246.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  247.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  248.     oldincludedir="$ac_optarg" ;;
  249.  
  250.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  251.     ac_prev=prefix ;;
  252.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  253.     prefix="$ac_optarg" ;;
  254.  
  255.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  256.   | --program-pre | --program-pr | --program-p)
  257.     ac_prev=program_prefix ;;
  258.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  259.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  260.     program_prefix="$ac_optarg" ;;
  261.  
  262.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  263.   | --program-suf | --program-su | --program-s)
  264.     ac_prev=program_suffix ;;
  265.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  266.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  267.     program_suffix="$ac_optarg" ;;
  268.  
  269.   -program-transform-name | --program-transform-name \
  270.   | --program-transform-nam | --program-transform-na \
  271.   | --program-transform-n | --program-transform- \
  272.   | --program-transform | --program-transfor \
  273.   | --program-transfo | --program-transf \
  274.   | --program-trans | --program-tran \
  275.   | --progr-tra | --program-tr | --program-t)
  276.     ac_prev=program_transform_name ;;
  277.   -program-transform-name=* | --program-transform-name=* \
  278.   | --program-transform-nam=* | --program-transform-na=* \
  279.   | --program-transform-n=* | --program-transform-=* \
  280.   | --program-transform=* | --program-transfor=* \
  281.   | --program-transfo=* | --program-transf=* \
  282.   | --program-trans=* | --program-tran=* \
  283.   | --progr-tra=* | --program-tr=* | --program-t=*)
  284.     program_transform_name="$ac_optarg" ;;
  285.  
  286.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  287.   | -silent | --silent | --silen | --sile | --sil)
  288.     silent=yes ;;
  289.  
  290.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  291.     ac_prev=sbindir ;;
  292.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  293.   | --sbi=* | --sb=*)
  294.     sbindir="$ac_optarg" ;;
  295.  
  296.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  297.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  298.   | --sharedst | --shareds | --shared | --share | --shar \
  299.   | --sha | --sh)
  300.     ac_prev=sharedstatedir ;;
  301.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  302.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  303.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  304.   | --sha=* | --sh=*)
  305.     sharedstatedir="$ac_optarg" ;;
  306.  
  307.   -site | --site | --sit)
  308.     ac_prev=site ;;
  309.   -site=* | --site=* | --sit=*)
  310.     site="$ac_optarg" ;;
  311.  
  312.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  313.     ac_prev=srcdir ;;
  314.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  315.     srcdir="$ac_optarg" ;;
  316.  
  317.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  318.   | --syscon | --sysco | --sysc | --sys | --sy)
  319.     ac_prev=sysconfdir ;;
  320.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  321.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  322.     sysconfdir="$ac_optarg" ;;
  323.  
  324.   -target | --target | --targe | --targ | --tar | --ta | --t)
  325.     ac_prev=target ;;
  326.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  327.     target="$ac_optarg" ;;
  328.  
  329.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  330.     verbose=yes ;;
  331.  
  332.   -version | --version | --versio | --versi | --vers)
  333.     echo "configure generated by autoconf version 2.7"
  334.     exit 0 ;;
  335.  
  336.   -with-* | --with-*)
  337.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  338.     # Reject names that are not valid shell variable names.
  339.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  340.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  341.     fi
  342.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  343.     case "$ac_option" in
  344.       *=*) ;;
  345.       *) ac_optarg=yes ;;
  346.     esac
  347.     eval "with_${ac_package}='$ac_optarg'" ;;
  348.  
  349.   -without-* | --without-*)
  350.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  351.     # Reject names that are not valid shell variable names.
  352.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  353.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  354.     fi
  355.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  356.     eval "with_${ac_package}=no" ;;
  357.  
  358.   --x)
  359.     # Obsolete; use --with-x.
  360.     with_x=yes ;;
  361.  
  362.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  363.   | --x-incl | --x-inc | --x-in | --x-i)
  364.     ac_prev=x_includes ;;
  365.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  366.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  367.     x_includes="$ac_optarg" ;;
  368.  
  369.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  370.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  371.     ac_prev=x_libraries ;;
  372.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  373.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  374.     x_libraries="$ac_optarg" ;;
  375.  
  376.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  377.     ;;
  378.  
  379.   *)
  380.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  381.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  382.     fi
  383.     if test "x$nonopt" != xNONE; then
  384.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  385.     fi
  386.     nonopt="$ac_option"
  387.     ;;
  388.  
  389.   esac
  390. done
  391.  
  392. if test -n "$ac_prev"; then
  393.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  394. fi
  395.  
  396. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  397.  
  398. # File descriptor usage:
  399. # 0 standard input
  400. # 1 file creation
  401. # 2 errors and warnings
  402. # 3 some systems may open it to /dev/tty
  403. # 4 used on the Kubota Titan
  404. # 6 checking for... messages and results
  405. # 5 compiler messages saved in config.log
  406. if test "$silent" = yes; then
  407.   exec 6>/dev/null
  408. else
  409.   exec 6>&1
  410. fi
  411. exec 5>./config.log
  412.  
  413. echo "\
  414. This file contains any messages produced by compilers while
  415. running configure, to aid debugging if configure makes a mistake.
  416. " 1>&5
  417.  
  418. # Strip out --no-create and --no-recursion so they do not pile up.
  419. # Also quote any args containing shell metacharacters.
  420. ac_configure_args=
  421. for ac_arg
  422. do
  423.   case "$ac_arg" in
  424.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  425.   | --no-cr | --no-c) ;;
  426.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  428.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  429.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  430.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  431.   esac
  432. done
  433.  
  434. # NLS nuisances.
  435. # Only set LANG and LC_ALL to C if already set.
  436. # These must not be set unconditionally because not all systems understand
  437. # e.g. LANG=C (notably SCO).
  438. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  439. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  440.  
  441. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  442. rm -rf conftest* confdefs.h
  443. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  444. echo > confdefs.h
  445.  
  446. # A filename unique to this package, relative to the directory that
  447. # configure is in, which we can look for to find out if srcdir is correct.
  448. ac_unique_file=cpio.h
  449.  
  450. # Find the source files, if location was not specified.
  451. if test -z "$srcdir"; then
  452.   ac_srcdir_defaulted=yes
  453.   # Try the directory containing this script, then its parent.
  454.   ac_prog=$0
  455.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  456.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  457.   srcdir=$ac_confdir
  458.   if test ! -r $srcdir/$ac_unique_file; then
  459.     srcdir=..
  460.   fi
  461. else
  462.   ac_srcdir_defaulted=no
  463. fi
  464. if test ! -r $srcdir/$ac_unique_file; then
  465.   if test "$ac_srcdir_defaulted" = yes; then
  466.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  467.   else
  468.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  469.   fi
  470. fi
  471. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  472.  
  473. # Prefer explicitly selected file to automatically selected ones.
  474. if test -z "$CONFIG_SITE"; then
  475.   if test "x$prefix" != xNONE; then
  476.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  477.   else
  478.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  479.   fi
  480. fi
  481. for ac_site_file in $CONFIG_SITE; do
  482.   if test -r "$ac_site_file"; then
  483.     echo "loading site script $ac_site_file"
  484.     . "$ac_site_file"
  485.   fi
  486. done
  487.  
  488. if test -r "$cache_file"; then
  489.   echo "loading cache $cache_file"
  490.   . $cache_file
  491. else
  492.   echo "creating cache $cache_file"
  493.   > $cache_file
  494. fi
  495.  
  496. ac_ext=c
  497. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  498. ac_cpp='echo $CPP $CPPFLAGS 1>&5;
  499. $CPP $CPPFLAGS'
  500. ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
  501. ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  502. ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
  503. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  504.  
  505. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  506.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  507.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  508.     ac_n= ac_c='
  509. ' ac_t='    '
  510.   else
  511.     ac_n=-n ac_c= ac_t=
  512.   fi
  513. else
  514.   ac_n= ac_c='\c' ac_t=
  515. fi
  516.  
  517.  
  518. PROGS="cpio"
  519. # Extract the first word of "gcc", so it can be a program name with args.
  520. set dummy gcc; ac_word=$2
  521. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  522. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  523.   echo $ac_n "(cached) $ac_c" 1>&6
  524. else
  525.   if test -n "$CC"; then
  526.   ac_cv_prog_CC="$CC" # Let the user override the test.
  527. else
  528.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  529.   for ac_dir in $PATH; do
  530.     test -z "$ac_dir" && ac_dir=.
  531.     if test -f $ac_dir/$ac_word; then
  532.       ac_cv_prog_CC="gcc"
  533.       break
  534.     fi
  535.   done
  536.   IFS="$ac_save_ifs"
  537.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  538. fi
  539. fi
  540. CC="$ac_cv_prog_CC"
  541. if test -n "$CC"; then
  542.   echo "$ac_t""$CC" 1>&6
  543. else
  544.   echo "$ac_t""no" 1>&6
  545. fi
  546.  
  547.  
  548. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  549. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  550.   echo $ac_n "(cached) $ac_c" 1>&6
  551. else
  552.   cat > conftest.c <<EOF
  553. #ifdef __GNUC__
  554.   yes;
  555. #endif
  556. EOF
  557. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  558.   ac_cv_prog_gcc=yes
  559. else
  560.   ac_cv_prog_gcc=no
  561. fi
  562. fi
  563.  
  564. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  565. if test $ac_cv_prog_gcc = yes; then
  566.   GCC=yes
  567.   if test "${CFLAGS+set}" != set; then
  568.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  569. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  570.   echo $ac_n "(cached) $ac_c" 1>&6
  571. else
  572.   echo 'void f(){}' > conftest.c
  573. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  574.   ac_cv_prog_gcc_g=yes
  575. else
  576.   ac_cv_prog_gcc_g=no
  577. fi
  578. rm -f conftest*
  579.  
  580. fi
  581.  
  582. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  583.     if test $ac_cv_prog_gcc_g = yes; then
  584.       CFLAGS="-g -O"
  585.     else
  586.       CFLAGS="-O"
  587.     fi
  588.   fi
  589. else
  590.   GCC=
  591.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  592. fi
  593.  
  594. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  595. # On Suns, sometimes $CPP names a directory.
  596. if test -n "$CPP" && test -d "$CPP"; then
  597.   CPP=
  598. fi
  599. if test -z "$CPP"; then
  600. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  601.   echo $ac_n "(cached) $ac_c" 1>&6
  602. else
  603.     # This must be in double quotes, not single quotes, because CPP may get
  604.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  605.   CPP="${CC-cc} -E"
  606.   # On the NeXT, cc -E runs the code through the compiler's parser,
  607.   # not just through cpp.
  608.   cat > conftest.$ac_ext <<EOF
  609. #line 610 "configure"
  610. #include "confdefs.h"
  611. #include <assert.h>
  612. Syntax Error
  613. EOF
  614. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  615. ac_err=`grep -v '^ *+' conftest.out`
  616. if test -z "$ac_err"; then
  617.   :
  618. else
  619.   echo "$ac_err" >&5
  620.   rm -rf conftest*
  621.   CPP="${CC-cc} -E -traditional-cpp"
  622.   cat > conftest.$ac_ext <<EOF
  623. #line 624 "configure"
  624. #include "confdefs.h"
  625. #include <assert.h>
  626. Syntax Error
  627. EOF
  628. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  629. ac_err=`grep -v '^ *+' conftest.out`
  630. if test -z "$ac_err"; then
  631.   :
  632. else
  633.   echo "$ac_err" >&5
  634.   rm -rf conftest*
  635.   CPP=/lib/cpp
  636. fi
  637. rm -f conftest*
  638. fi
  639. rm -f conftest*
  640.   ac_cv_prog_CPP="$CPP"
  641. fi
  642.   CPP="$ac_cv_prog_CPP"
  643. else
  644.   ac_cv_prog_CPP="$CPP"
  645. fi
  646. echo "$ac_t""$CPP" 1>&6
  647.  
  648. if test $ac_cv_prog_gcc = yes; then
  649.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  650. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  651.   echo $ac_n "(cached) $ac_c" 1>&6
  652. else
  653.     ac_pattern="Autoconf.*'x'"
  654.   cat > conftest.$ac_ext <<EOF
  655. #line 656 "configure"
  656. #include "confdefs.h"
  657. #include <sgtty.h>
  658. Autoconf TIOCGETP
  659. EOF
  660. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  661.   egrep "$ac_pattern" >/dev/null 2>&1; then
  662.   rm -rf conftest*
  663.   ac_cv_prog_gcc_traditional=yes
  664. else
  665.   rm -rf conftest*
  666.   ac_cv_prog_gcc_traditional=no
  667. fi
  668. rm -f conftest*
  669.  
  670.  
  671.   if test $ac_cv_prog_gcc_traditional = no; then
  672.     cat > conftest.$ac_ext <<EOF
  673. #line 674 "configure"
  674. #include "confdefs.h"
  675. #include <termio.h>
  676. Autoconf TCGETA
  677. EOF
  678. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  679.   egrep "$ac_pattern" >/dev/null 2>&1; then
  680.   rm -rf conftest*
  681.   ac_cv_prog_gcc_traditional=yes
  682. fi
  683. rm -f conftest*
  684.  
  685.   fi
  686. fi
  687.  
  688. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  689.   if test $ac_cv_prog_gcc_traditional = yes; then
  690.     CC="$CC -traditional"
  691.   fi
  692. fi
  693.  
  694. ac_aux_dir=
  695. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  696.   if test -f $ac_dir/install-sh; then
  697.     ac_aux_dir=$ac_dir
  698.     ac_install_sh="$ac_aux_dir/install-sh -c"
  699.     break
  700.   elif test -f $ac_dir/install.sh; then
  701.     ac_aux_dir=$ac_dir
  702.     ac_install_sh="$ac_aux_dir/install.sh -c"
  703.     break
  704.   fi
  705. done
  706. if test -z "$ac_aux_dir"; then
  707.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  708. fi
  709. ac_config_guess=$ac_aux_dir/config.guess
  710. ac_config_sub=$ac_aux_dir/config.sub
  711. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  712.  
  713. # Find a good install program.  We prefer a C program (faster),
  714. # so one script is as good as another.  But avoid the broken or
  715. # incompatible versions:
  716. # SysV /etc/install, /usr/sbin/install
  717. # SunOS /usr/etc/install
  718. # IRIX /sbin/install
  719. # AIX /bin/install
  720. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  721. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  722. # ./install, which can be erroneously created by make from ./install.sh.
  723. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  724. if test -z "$INSTALL"; then
  725. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  726.   echo $ac_n "(cached) $ac_c" 1>&6
  727. else
  728.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  729.   for ac_dir in $PATH; do
  730.     # Account for people who put trailing slashes in PATH elements.
  731.     case "$ac_dir/" in
  732.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  733.     *)
  734.       # OSF1 and SCO ODT 3.0 have their own names for install.
  735.       for ac_prog in ginstall installbsd scoinst install; do
  736.         if test -f $ac_dir/$ac_prog; then
  737.       if test $ac_prog = install &&
  738.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  739.         # AIX install.  It has an incompatible calling convention.
  740.         # OSF/1 installbsd also uses dspmsg, but is usable.
  741.         :
  742.       else
  743.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  744.         break 2
  745.       fi
  746.     fi
  747.       done
  748.       ;;
  749.     esac
  750.   done
  751.   IFS="$ac_save_ifs"
  752.  
  753. fi
  754.   if test "${ac_cv_path_install+set}" = set; then
  755.     INSTALL="$ac_cv_path_install"
  756.   else
  757.     # As a last resort, use the slow shell script.  We don't cache a
  758.     # path for INSTALL within a source directory, because that will
  759.     # break other packages using the cache if that directory is
  760.     # removed, or if the path is relative.
  761.     INSTALL="$ac_install_sh"
  762.   fi
  763. fi
  764. echo "$ac_t""$INSTALL" 1>&6
  765.  
  766. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  767. # It thinks the first close brace ends the variable substitution.
  768. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  769.  
  770. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  771.  
  772. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  773. cat > conftest.$ac_ext <<EOF
  774. #line 775 "configure"
  775. #include "confdefs.h"
  776. #ifdef _AIX
  777.   yes
  778. #endif
  779.  
  780. EOF
  781. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  782.   egrep "yes" >/dev/null 2>&1; then
  783.   rm -rf conftest*
  784.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  785. #define _ALL_SOURCE 1
  786. EOF
  787.  
  788. else
  789.   rm -rf conftest*
  790.   echo "$ac_t""no" 1>&6
  791. fi
  792. rm -f conftest*
  793.  
  794.  
  795. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  796. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  797. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  798.   echo $ac_n "(cached) $ac_c" 1>&6
  799. else
  800.   cat > conftest.$ac_ext <<EOF
  801. #line 802 "configure"
  802. #include "confdefs.h"
  803. #include <minix/config.h>
  804. EOF
  805. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  806. ac_err=`grep -v '^ *+' conftest.out`
  807. if test -z "$ac_err"; then
  808.   rm -rf conftest*
  809.   eval "ac_cv_header_$ac_safe=yes"
  810. else
  811.   echo "$ac_err" >&5
  812.   rm -rf conftest*
  813.   eval "ac_cv_header_$ac_safe=no"
  814. fi
  815. rm -f conftest*
  816. fi
  817. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  818.   echo "$ac_t""yes" 1>&6
  819.   MINIX=yes
  820. else
  821.   echo "$ac_t""no" 1>&6
  822. MINIX=
  823. fi
  824.  
  825. if test "$MINIX" = yes; then
  826.   cat >> confdefs.h <<\EOF
  827. #define _POSIX_SOURCE 1
  828. EOF
  829.  
  830.   cat >> confdefs.h <<\EOF
  831. #define _POSIX_1_SOURCE 2
  832. EOF
  833.  
  834.   cat >> confdefs.h <<\EOF
  835. #define _MINIX 1
  836. EOF
  837.  
  838. fi
  839.  
  840. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  841. if test -d /etc/conf/kconfig.d &&
  842.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  843. then
  844.   echo "$ac_t""yes" 1>&6
  845.   ISC=yes # If later tests want to check for ISC.
  846.   cat >> confdefs.h <<\EOF
  847. #define _POSIX_SOURCE 1
  848. EOF
  849.  
  850.   if test "$GCC" = yes; then
  851.     CC="$CC -posix"
  852.   else
  853.     CC="$CC -Xp"
  854.   fi
  855. else
  856.   echo "$ac_t""no" 1>&6
  857.   ISC=
  858. fi
  859.  
  860. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  861. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  862.   echo $ac_n "(cached) $ac_c" 1>&6
  863. else
  864.   cat > conftest.$ac_ext <<EOF
  865. #line 866 "configure"
  866. #include "confdefs.h"
  867. #include <sys/types.h>
  868. #include <signal.h>
  869. #ifdef signal
  870. #undef signal
  871. #endif
  872. #ifdef __cplusplus
  873. extern "C" void (*signal (int, void (*)(int)))(int);
  874. #else
  875. void (*signal ()) ();
  876. #endif
  877.  
  878. int main() { return 0; }
  879. int t() {
  880. int i;
  881. ; return 0; }
  882. EOF
  883. if eval $ac_compile; then
  884.   rm -rf conftest*
  885.   ac_cv_type_signal=void
  886. else
  887.   rm -rf conftest*
  888.   ac_cv_type_signal=int
  889. fi
  890. rm -f conftest*
  891.  
  892. fi
  893.  
  894. echo "$ac_t""$ac_cv_type_signal" 1>&6
  895. cat >> confdefs.h <<EOF
  896. #define RETSIGTYPE $ac_cv_type_signal
  897. EOF
  898.  
  899.  
  900. echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
  901. if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
  902.   echo $ac_n "(cached) $ac_c" 1>&6
  903. else
  904.   cat > conftest.$ac_ext <<EOF
  905. #line 906 "configure"
  906. #include "confdefs.h"
  907. #include <sys/types.h>
  908. int main() { return 0; }
  909. int t() {
  910. return makedev(0, 0);
  911. ; return 0; }
  912. EOF
  913. if eval $ac_link; then
  914.   rm -rf conftest*
  915.   ac_cv_header_sys_types_h_makedev=yes
  916. else
  917.   rm -rf conftest*
  918.   ac_cv_header_sys_types_h_makedev=no
  919. fi
  920. rm -f conftest*
  921.  
  922.  
  923. fi
  924.  
  925. echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
  926.  
  927. if test $ac_cv_header_sys_types_h_makedev = no; then
  928. ac_safe=`echo "sys/mkdev.h" | tr './\055' '___'`
  929. echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
  930. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  931.   echo $ac_n "(cached) $ac_c" 1>&6
  932. else
  933.   cat > conftest.$ac_ext <<EOF
  934. #line 935 "configure"
  935. #include "confdefs.h"
  936. #include <sys/mkdev.h>
  937. EOF
  938. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  939. ac_err=`grep -v '^ *+' conftest.out`
  940. if test -z "$ac_err"; then
  941.   rm -rf conftest*
  942.   eval "ac_cv_header_$ac_safe=yes"
  943. else
  944.   echo "$ac_err" >&5
  945.   rm -rf conftest*
  946.   eval "ac_cv_header_$ac_safe=no"
  947. fi
  948. rm -f conftest*
  949. fi
  950. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  951.   echo "$ac_t""yes" 1>&6
  952.   cat >> confdefs.h <<\EOF
  953. #define MAJOR_IN_MKDEV 1
  954. EOF
  955.  
  956. else
  957.   echo "$ac_t""no" 1>&6
  958. fi
  959.  
  960.  
  961.   if test $ac_cv_header_sys_mkdev_h = no; then
  962. ac_safe=`echo "sys/sysmacros.h" | tr './\055' '___'`
  963. echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
  964. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  965.   echo $ac_n "(cached) $ac_c" 1>&6
  966. else
  967.   cat > conftest.$ac_ext <<EOF
  968. #line 969 "configure"
  969. #include "confdefs.h"
  970. #include <sys/sysmacros.h>
  971. EOF
  972. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  973. ac_err=`grep -v '^ *+' conftest.out`
  974. if test -z "$ac_err"; then
  975.   rm -rf conftest*
  976.   eval "ac_cv_header_$ac_safe=yes"
  977. else
  978.   echo "$ac_err" >&5
  979.   rm -rf conftest*
  980.   eval "ac_cv_header_$ac_safe=no"
  981. fi
  982. rm -f conftest*
  983. fi
  984. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  985.   echo "$ac_t""yes" 1>&6
  986.   cat >> confdefs.h <<\EOF
  987. #define MAJOR_IN_SYSMACROS 1
  988. EOF
  989.  
  990. else
  991.   echo "$ac_t""no" 1>&6
  992. fi
  993.  
  994.   fi
  995. fi
  996.  
  997.  
  998. echo "checking for remote tape and socket header files" 1>&6
  999. ac_safe=`echo "sys/mtio.h" | tr './\055' '___'`
  1000. echo $ac_n "checking for sys/mtio.h""... $ac_c" 1>&6
  1001. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1002.   echo $ac_n "(cached) $ac_c" 1>&6
  1003. else
  1004.   cat > conftest.$ac_ext <<EOF
  1005. #line 1006 "configure"
  1006. #include "confdefs.h"
  1007. #include <sys/mtio.h>
  1008. EOF
  1009. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1010. ac_err=`grep -v '^ *+' conftest.out`
  1011. if test -z "$ac_err"; then
  1012.   rm -rf conftest*
  1013.   eval "ac_cv_header_$ac_safe=yes"
  1014. else
  1015.   echo "$ac_err" >&5
  1016.   rm -rf conftest*
  1017.   eval "ac_cv_header_$ac_safe=no"
  1018. fi
  1019. rm -f conftest*
  1020. fi
  1021. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1022.   echo "$ac_t""yes" 1>&6
  1023.   cat >> confdefs.h <<\EOF
  1024. #define HAVE_SYS_MTIO_H 1
  1025. EOF
  1026.  
  1027. PROGS="$PROGS mt"
  1028. cat > conftest.$ac_ext <<EOF
  1029. #line 1030 "configure"
  1030. #include "confdefs.h"
  1031. #include <sgtty.h>
  1032. #include <sys/socket.h>
  1033. EOF
  1034. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1035. ac_err=`grep -v '^ *+' conftest.out`
  1036. if test -z "$ac_err"; then
  1037.   rm -rf conftest*
  1038.   PROGS="$PROGS rmt"
  1039. else
  1040.   echo "$ac_err" >&5
  1041. fi
  1042. rm -f conftest*
  1043. else
  1044.   echo "$ac_t""no" 1>&6
  1045. fi
  1046.  
  1047.  
  1048. echo "checking for remote shell" 1>&6
  1049. if test -f /usr/ucb/rsh || test -f /usr/bin/remsh || test -f /usr/bin/rsh ||
  1050.   test -f /usr/bsd/rsh || test -f /usr/bin/nsh; then
  1051.   RTAPELIB=rtapelib.o
  1052. else
  1053.   ac_safe=`echo "netdb.h" | tr './\055' '___'`
  1054. echo $ac_n "checking for netdb.h""... $ac_c" 1>&6
  1055. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1056.   echo $ac_n "(cached) $ac_c" 1>&6
  1057. else
  1058.   cat > conftest.$ac_ext <<EOF
  1059. #line 1060 "configure"
  1060. #include "confdefs.h"
  1061. #include <netdb.h>
  1062. EOF
  1063. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1064. ac_err=`grep -v '^ *+' conftest.out`
  1065. if test -z "$ac_err"; then
  1066.   rm -rf conftest*
  1067.   eval "ac_cv_header_$ac_safe=yes"
  1068. else
  1069.   echo "$ac_err" >&5
  1070.   rm -rf conftest*
  1071.   eval "ac_cv_header_$ac_safe=no"
  1072. fi
  1073. rm -f conftest*
  1074. fi
  1075. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1076.   echo "$ac_t""yes" 1>&6
  1077.   cat >> confdefs.h <<\EOF
  1078. #define HAVE_NETDB_H 1
  1079. EOF
  1080.  RTAPELIB=rtapelib.o
  1081. else
  1082.   echo "$ac_t""no" 1>&6
  1083. cat >> confdefs.h <<\EOF
  1084. #define NO_REMOTE 1
  1085. EOF
  1086.  
  1087. fi
  1088.  
  1089. fi
  1090.  
  1091. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1092. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1093.   echo $ac_n "(cached) $ac_c" 1>&6
  1094. else
  1095.   cat > conftest.$ac_ext <<EOF
  1096. #line 1097 "configure"
  1097. #include "confdefs.h"
  1098.  
  1099. int main() { return 0; }
  1100. int t() {
  1101.  
  1102. /* Ultrix mips cc rejects this.  */
  1103. typedef int charset[2]; const charset x;
  1104. /* SunOS 4.1.1 cc rejects this.  */
  1105. char const *const *ccp;
  1106. char **p;
  1107. /* NEC SVR4.0.2 mips cc rejects this.  */
  1108. struct point {int x, y;};
  1109. static struct point const zero = {0,0};
  1110. /* AIX XL C 1.02.0.0 rejects this.
  1111.    It does not let you subtract one const X* pointer from another in an arm
  1112.    of an if-expression whose if-part is not a constant expression */
  1113. const char *g = "string";
  1114. ccp = &g + (g ? g-g : 0);
  1115. /* HPUX 7.0 cc rejects these. */
  1116. ++ccp;
  1117. p = (char**) ccp;
  1118. ccp = (char const *const *) p;
  1119. { /* SCO 3.2v4 cc rejects this.  */
  1120.   char *t;
  1121.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1122.  
  1123.   *t++ = 0;
  1124. }
  1125. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1126.   int x[] = {25, 17};
  1127.   const int *foo = &x[0];
  1128.   ++foo;
  1129. }
  1130. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1131.   typedef const int *iptr;
  1132.   iptr p = 0;
  1133.   ++p;
  1134. }
  1135. { /* AIX XL C 1.02.0.0 rejects this saying
  1136.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1137.   struct s { int j; const int *ap[3]; };
  1138.   struct s *b; b->j = 5;
  1139. }
  1140. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1141.   const int foo = 10;
  1142. }
  1143.  
  1144. ; return 0; }
  1145. EOF
  1146. if eval $ac_compile; then
  1147.   rm -rf conftest*
  1148.   ac_cv_c_const=yes
  1149. else
  1150.   rm -rf conftest*
  1151.   ac_cv_c_const=no
  1152. fi
  1153. rm -f conftest*
  1154.  
  1155. fi
  1156.  
  1157. echo "$ac_t""$ac_cv_c_const" 1>&6
  1158. if test $ac_cv_c_const = no; then
  1159.   cat >> confdefs.h <<\EOF
  1160. #define const 
  1161. EOF
  1162.  
  1163. fi
  1164.  
  1165. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1166. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1167.   echo $ac_n "(cached) $ac_c" 1>&6
  1168. else
  1169.   cat > conftest.$ac_ext <<EOF
  1170. #line 1171 "configure"
  1171. #include "confdefs.h"
  1172. #include <sys/types.h>
  1173. EOF
  1174. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1175.   egrep "uid_t" >/dev/null 2>&1; then
  1176.   rm -rf conftest*
  1177.   ac_cv_type_uid_t=yes
  1178. else
  1179.   rm -rf conftest*
  1180.   ac_cv_type_uid_t=no
  1181. fi
  1182. rm -f conftest*
  1183.  
  1184. fi
  1185.  
  1186. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1187. if test $ac_cv_type_uid_t = no; then
  1188.   cat >> confdefs.h <<\EOF
  1189. #define uid_t int
  1190. EOF
  1191.  
  1192.   cat >> confdefs.h <<\EOF
  1193. #define gid_t int
  1194. EOF
  1195.  
  1196. fi
  1197.  
  1198. # If we cannot run a trivial program, we must be cross compiling.
  1199. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1200. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1201.   echo $ac_n "(cached) $ac_c" 1>&6
  1202. else
  1203.   if test "$cross_compiling" = yes; then
  1204.   ac_cv_c_cross=yes
  1205. else
  1206. cat > conftest.$ac_ext <<EOF
  1207. #line 1208 "configure"
  1208. #include "confdefs.h"
  1209. main(){return(0);}
  1210. EOF
  1211. eval $ac_link
  1212. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1213.   ac_cv_c_cross=no
  1214. else
  1215.   ac_cv_c_cross=yes
  1216. fi
  1217. fi
  1218. rm -fr conftest*
  1219. fi
  1220.  
  1221. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1222. cross_compiling=$ac_cv_c_cross
  1223.  
  1224. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1225. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1226.   echo $ac_n "(cached) $ac_c" 1>&6
  1227. else
  1228.   cat > conftest.$ac_ext <<EOF
  1229. #line 1230 "configure"
  1230. #include "confdefs.h"
  1231. #include <stdlib.h>
  1232. #include <stdarg.h>
  1233. #include <string.h>
  1234. #include <float.h>
  1235. EOF
  1236. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1237. ac_err=`grep -v '^ *+' conftest.out`
  1238. if test -z "$ac_err"; then
  1239.   rm -rf conftest*
  1240.   ac_cv_header_stdc=yes
  1241. else
  1242.   echo "$ac_err" >&5
  1243.   rm -rf conftest*
  1244.   ac_cv_header_stdc=no
  1245. fi
  1246. rm -f conftest*
  1247.  
  1248. if test $ac_cv_header_stdc = yes; then
  1249.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1250. cat > conftest.$ac_ext <<EOF
  1251. #line 1252 "configure"
  1252. #include "confdefs.h"
  1253. #include <string.h>
  1254. EOF
  1255. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1256.   egrep "memchr" >/dev/null 2>&1; then
  1257.   :
  1258. else
  1259.   rm -rf conftest*
  1260.   ac_cv_header_stdc=no
  1261. fi
  1262. rm -f conftest*
  1263.  
  1264. fi
  1265.  
  1266. if test $ac_cv_header_stdc = yes; then
  1267.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1268. cat > conftest.$ac_ext <<EOF
  1269. #line 1270 "configure"
  1270. #include "confdefs.h"
  1271. #include <stdlib.h>
  1272. EOF
  1273. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1274.   egrep "free" >/dev/null 2>&1; then
  1275.   :
  1276. else
  1277.   rm -rf conftest*
  1278.   ac_cv_header_stdc=no
  1279. fi
  1280. rm -f conftest*
  1281.  
  1282. fi
  1283.  
  1284. if test $ac_cv_header_stdc = yes; then
  1285.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1286. if test "$cross_compiling" = yes; then
  1287.   :
  1288. else
  1289. cat > conftest.$ac_ext <<EOF
  1290. #line 1291 "configure"
  1291. #include "confdefs.h"
  1292. #include <ctype.h>
  1293. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1294. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1295. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1296. int main () { int i; for (i = 0; i < 256; i++)
  1297. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1298. exit (0); }
  1299.  
  1300. EOF
  1301. eval $ac_link
  1302. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1303.   :
  1304. else
  1305.   ac_cv_header_stdc=no
  1306. fi
  1307. fi
  1308. rm -fr conftest*
  1309. fi
  1310. fi
  1311.  
  1312. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1313. if test $ac_cv_header_stdc = yes; then
  1314.   cat >> confdefs.h <<\EOF
  1315. #define STDC_HEADERS 1
  1316. EOF
  1317.  
  1318. fi
  1319.  
  1320. for ac_hdr in unistd.h string.h fcntl.h sys/io/trioctl.h
  1321. do
  1322. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1323. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1324. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1325.   echo $ac_n "(cached) $ac_c" 1>&6
  1326. else
  1327.   cat > conftest.$ac_ext <<EOF
  1328. #line 1329 "configure"
  1329. #include "confdefs.h"
  1330. #include <$ac_hdr>
  1331. EOF
  1332. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1333. ac_err=`grep -v '^ *+' conftest.out`
  1334. if test -z "$ac_err"; then
  1335.   rm -rf conftest*
  1336.   eval "ac_cv_header_$ac_safe=yes"
  1337. else
  1338.   echo "$ac_err" >&5
  1339.   rm -rf conftest*
  1340.   eval "ac_cv_header_$ac_safe=no"
  1341. fi
  1342. rm -f conftest*
  1343. fi
  1344. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1345.   echo "$ac_t""yes" 1>&6
  1346.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1347.   cat >> confdefs.h <<EOF
  1348. #define $ac_tr_hdr 1
  1349. EOF
  1350.  
  1351. else
  1352.   echo "$ac_t""no" 1>&6
  1353. fi
  1354. done
  1355.  
  1356. for ac_func in bcopy mkdir strdup
  1357. do
  1358. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1359. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1360.   echo $ac_n "(cached) $ac_c" 1>&6
  1361. else
  1362.   cat > conftest.$ac_ext <<EOF
  1363. #line 1364 "configure"
  1364. #include "confdefs.h"
  1365. /* System header to define __stub macros and hopefully few prototypes,
  1366.     which can conflict with char $ac_func(); below.  */
  1367. #include <assert.h>
  1368. /* Override any gcc2 internal prototype to avoid an error.  */
  1369. char $ac_func();
  1370.  
  1371. int main() { return 0; }
  1372. int t() {
  1373.  
  1374. /* The GNU C library defines this for functions which it implements
  1375.     to always fail with ENOSYS.  Some functions are actually named
  1376.     something starting with __ and the normal name is an alias.  */
  1377. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1378. choke me
  1379. #else
  1380. $ac_func();
  1381. #endif
  1382.  
  1383. ; return 0; }
  1384. EOF
  1385. if eval $ac_link; then
  1386.   rm -rf conftest*
  1387.   eval "ac_cv_func_$ac_func=yes"
  1388. else
  1389.   rm -rf conftest*
  1390.   eval "ac_cv_func_$ac_func=no"
  1391. fi
  1392. rm -f conftest*
  1393.  
  1394. fi
  1395. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1396.   echo "$ac_t""yes" 1>&6
  1397.   :
  1398. else
  1399.   echo "$ac_t""no" 1>&6
  1400. LIBOBJS="$LIBOBJS ${ac_func}.o"
  1401. fi
  1402.  
  1403. done
  1404.  
  1405.  
  1406. echo $ac_n "checking for utime.h""... $ac_c" 1>&6
  1407. cat > conftest.$ac_ext <<EOF
  1408. #line 1409 "configure"
  1409. #include "confdefs.h"
  1410. #include <sys/types.h>
  1411. #include <utime.h>
  1412. int main() { return 0; }
  1413. int t() {
  1414. struct utimbuf foo
  1415. ; return 0; }
  1416. EOF
  1417. if eval $ac_compile; then
  1418.   rm -rf conftest*
  1419.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1420. #define HAVE_UTIME_H 1
  1421. EOF
  1422.  
  1423. else
  1424.   rm -rf conftest*
  1425.   echo "$ac_t""no" 1>&6
  1426. fi
  1427. rm -f conftest*
  1428.  
  1429.  
  1430. have_fnmatch=no
  1431. echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
  1432. if test "$cross_compiling" = yes; then
  1433.   have_fnmatch=no
  1434. else
  1435. cat > conftest.$ac_ext <<EOF
  1436. #line 1437 "configure"
  1437. #include "confdefs.h"
  1438.  
  1439. main() {
  1440. if (fnmatch ("a*", "abc", 0) == 0) return 0;
  1441. else return 1; }
  1442. EOF
  1443. eval $ac_link
  1444. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1445.   have_fnmatch=yes
  1446. else
  1447.   have_fnmatch=no
  1448. fi
  1449. fi
  1450. rm -fr conftest*
  1451. if test $have_fnmatch = yes ; then
  1452.   echo "$ac_t""yes" 1>&6
  1453.   FNMATCH=""
  1454. else
  1455.   echo "$ac_t""no" 1>&6
  1456.   FNMATCH="fnmatch.o"
  1457. fi
  1458.  
  1459. for ac_func in strerror lchown
  1460. do
  1461. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1462. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1463.   echo $ac_n "(cached) $ac_c" 1>&6
  1464. else
  1465.   cat > conftest.$ac_ext <<EOF
  1466. #line 1467 "configure"
  1467. #include "confdefs.h"
  1468. /* System header to define __stub macros and hopefully few prototypes,
  1469.     which can conflict with char $ac_func(); below.  */
  1470. #include <assert.h>
  1471. /* Override any gcc2 internal prototype to avoid an error.  */
  1472. char $ac_func();
  1473.  
  1474. int main() { return 0; }
  1475. int t() {
  1476.  
  1477. /* The GNU C library defines this for functions which it implements
  1478.     to always fail with ENOSYS.  Some functions are actually named
  1479.     something starting with __ and the normal name is an alias.  */
  1480. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1481. choke me
  1482. #else
  1483. $ac_func();
  1484. #endif
  1485.  
  1486. ; return 0; }
  1487. EOF
  1488. if eval $ac_link; then
  1489.   rm -rf conftest*
  1490.   eval "ac_cv_func_$ac_func=yes"
  1491. else
  1492.   rm -rf conftest*
  1493.   eval "ac_cv_func_$ac_func=no"
  1494. fi
  1495. rm -f conftest*
  1496.  
  1497. fi
  1498. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1499.   echo "$ac_t""yes" 1>&6
  1500.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1501.   cat >> confdefs.h <<EOF
  1502. #define $ac_tr_func 1
  1503. EOF
  1504.  
  1505. else
  1506.   echo "$ac_t""no" 1>&6
  1507. fi
  1508. done
  1509.  
  1510. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1511. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1512.   echo $ac_n "(cached) $ac_c" 1>&6
  1513. else
  1514.   cat > conftest.$ac_ext <<EOF
  1515. #line 1516 "configure"
  1516. #include "confdefs.h"
  1517. /* System header to define __stub macros and hopefully few prototypes,
  1518.     which can conflict with char vprintf(); below.  */
  1519. #include <assert.h>
  1520. /* Override any gcc2 internal prototype to avoid an error.  */
  1521. char vprintf();
  1522.  
  1523. int main() { return 0; }
  1524. int t() {
  1525.  
  1526. /* The GNU C library defines this for functions which it implements
  1527.     to always fail with ENOSYS.  Some functions are actually named
  1528.     something starting with __ and the normal name is an alias.  */
  1529. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1530. choke me
  1531. #else
  1532. vprintf();
  1533. #endif
  1534.  
  1535. ; return 0; }
  1536. EOF
  1537. if eval $ac_link; then
  1538.   rm -rf conftest*
  1539.   eval "ac_cv_func_vprintf=yes"
  1540. else
  1541.   rm -rf conftest*
  1542.   eval "ac_cv_func_vprintf=no"
  1543. fi
  1544. rm -f conftest*
  1545.  
  1546. fi
  1547. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1548.   echo "$ac_t""yes" 1>&6
  1549.   cat >> confdefs.h <<\EOF
  1550. #define HAVE_VPRINTF 1
  1551. EOF
  1552.  
  1553. else
  1554.   echo "$ac_t""no" 1>&6
  1555. fi
  1556.  
  1557. if test "$ac_cv_func_vprintf" != yes; then
  1558. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1559. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1560.   echo $ac_n "(cached) $ac_c" 1>&6
  1561. else
  1562.   cat > conftest.$ac_ext <<EOF
  1563. #line 1564 "configure"
  1564. #include "confdefs.h"
  1565. /* System header to define __stub macros and hopefully few prototypes,
  1566.     which can conflict with char _doprnt(); below.  */
  1567. #include <assert.h>
  1568. /* Override any gcc2 internal prototype to avoid an error.  */
  1569. char _doprnt();
  1570.  
  1571. int main() { return 0; }
  1572. int t() {
  1573.  
  1574. /* The GNU C library defines this for functions which it implements
  1575.     to always fail with ENOSYS.  Some functions are actually named
  1576.     something starting with __ and the normal name is an alias.  */
  1577. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  1578. choke me
  1579. #else
  1580. _doprnt();
  1581. #endif
  1582.  
  1583. ; return 0; }
  1584. EOF
  1585. if eval $ac_link; then
  1586.   rm -rf conftest*
  1587.   eval "ac_cv_func__doprnt=yes"
  1588. else
  1589.   rm -rf conftest*
  1590.   eval "ac_cv_func__doprnt=no"
  1591. fi
  1592. rm -f conftest*
  1593.  
  1594. fi
  1595. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1596.   echo "$ac_t""yes" 1>&6
  1597.   cat >> confdefs.h <<\EOF
  1598. #define HAVE_DOPRNT 1
  1599. EOF
  1600.  
  1601. else
  1602.   echo "$ac_t""no" 1>&6
  1603. fi
  1604.  
  1605. fi
  1606.  
  1607. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1608. # for constant arguments.  Useless!
  1609. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1610. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1611.   echo $ac_n "(cached) $ac_c" 1>&6
  1612. else
  1613.   cat > conftest.$ac_ext <<EOF
  1614. #line 1615 "configure"
  1615. #include "confdefs.h"
  1616. #include <alloca.h>
  1617. int main() { return 0; }
  1618. int t() {
  1619. char *p = alloca(2 * sizeof(int));
  1620. ; return 0; }
  1621. EOF
  1622. if eval $ac_link; then
  1623.   rm -rf conftest*
  1624.   ac_cv_header_alloca_h=yes
  1625. else
  1626.   rm -rf conftest*
  1627.   ac_cv_header_alloca_h=no
  1628. fi
  1629. rm -f conftest*
  1630.  
  1631. fi
  1632.  
  1633. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1634. if test $ac_cv_header_alloca_h = yes; then
  1635.   cat >> confdefs.h <<\EOF
  1636. #define HAVE_ALLOCA_H 1
  1637. EOF
  1638.  
  1639. fi
  1640.  
  1641. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1642. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1643.   echo $ac_n "(cached) $ac_c" 1>&6
  1644. else
  1645.   cat > conftest.$ac_ext <<EOF
  1646. #line 1647 "configure"
  1647. #include "confdefs.h"
  1648.  
  1649. #ifdef __GNUC__
  1650. # define alloca __builtin_alloca
  1651. #else
  1652. # if HAVE_ALLOCA_H
  1653. #  include <alloca.h>
  1654. # else
  1655. #  ifdef _AIX
  1656.  #pragma alloca
  1657. #  else
  1658. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1659. char *alloca ();
  1660. #   endif
  1661. #  endif
  1662. # endif
  1663. #endif
  1664.  
  1665. int main() { return 0; }
  1666. int t() {
  1667. char *p = (char *) alloca(1);
  1668. ; return 0; }
  1669. EOF
  1670. if eval $ac_link; then
  1671.   rm -rf conftest*
  1672.   ac_cv_func_alloca=yes
  1673. else
  1674.   rm -rf conftest*
  1675.   ac_cv_func_alloca=no
  1676. fi
  1677. rm -f conftest*
  1678.  
  1679. fi
  1680.  
  1681. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1682. if test $ac_cv_func_alloca = yes; then
  1683.   cat >> confdefs.h <<\EOF
  1684. #define HAVE_ALLOCA 1
  1685. EOF
  1686.  
  1687. fi
  1688.  
  1689. if test $ac_cv_func_alloca = no; then
  1690.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1691.   # that cause trouble.  Some versions do not even contain alloca or
  1692.   # contain a buggy version.  If you still want to use their alloca,
  1693.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1694.   ALLOCA=alloca.o
  1695.   cat >> confdefs.h <<\EOF
  1696. #define C_ALLOCA 1
  1697. EOF
  1698.  
  1699.  
  1700. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1701. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1702.   echo $ac_n "(cached) $ac_c" 1>&6
  1703. else
  1704.   cat > conftest.$ac_ext <<EOF
  1705. #line 1706 "configure"
  1706. #include "confdefs.h"
  1707. #if defined(CRAY) && ! defined(CRAY2)
  1708. webecray
  1709. #else
  1710. wenotbecray
  1711. #endif
  1712.  
  1713. EOF
  1714. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1715.   egrep "webecray" >/dev/null 2>&1; then
  1716.   rm -rf conftest*
  1717.   ac_cv_os_cray=yes
  1718. else
  1719.   rm -rf conftest*
  1720.   ac_cv_os_cray=no
  1721. fi
  1722. rm -f conftest*
  1723.  
  1724. fi
  1725.  
  1726. echo "$ac_t""$ac_cv_os_cray" 1>&6
  1727. if test $ac_cv_os_cray = yes; then
  1728. for ac_func in _getb67 GETB67 getb67; do
  1729.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1730. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1731.   echo $ac_n "(cached) $ac_c" 1>&6
  1732. else
  1733.   cat > conftest.$ac_ext <<EOF
  1734. #line 1735 "configure"
  1735. #include "confdefs.h"
  1736. /* System header to define __stub macros and hopefully few prototypes,
  1737.     which can conflict with char $ac_func(); below.  */
  1738. #include <assert.h>
  1739. /* Override any gcc2 internal prototype to avoid an error.  */
  1740. char $ac_func();
  1741.  
  1742. int main() { return 0; }
  1743. int t() {
  1744.  
  1745. /* The GNU C library defines this for functions which it implements
  1746.     to always fail with ENOSYS.  Some functions are actually named
  1747.     something starting with __ and the normal name is an alias.  */
  1748. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1749. choke me
  1750. #else
  1751. $ac_func();
  1752. #endif
  1753.  
  1754. ; return 0; }
  1755. EOF
  1756. if eval $ac_link; then
  1757.   rm -rf conftest*
  1758.   eval "ac_cv_func_$ac_func=yes"
  1759. else
  1760.   rm -rf conftest*
  1761.   eval "ac_cv_func_$ac_func=no"
  1762. fi
  1763. rm -f conftest*
  1764.  
  1765. fi
  1766. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1767.   echo "$ac_t""yes" 1>&6
  1768.   cat >> confdefs.h <<EOF
  1769. #define CRAY_STACKSEG_END $ac_func
  1770. EOF
  1771.  
  1772.   break
  1773. else
  1774.   echo "$ac_t""no" 1>&6
  1775. fi
  1776.  
  1777. done
  1778. fi
  1779.  
  1780. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1781. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1782.   echo $ac_n "(cached) $ac_c" 1>&6
  1783. else
  1784.   if test "$cross_compiling" = yes; then
  1785.   ac_cv_c_stack_direction=0
  1786. else
  1787. cat > conftest.$ac_ext <<EOF
  1788. #line 1789 "configure"
  1789. #include "confdefs.h"
  1790. find_stack_direction ()
  1791. {
  1792.   static char *addr = 0;
  1793.   auto char dummy;
  1794.   if (addr == 0)
  1795.     {
  1796.       addr = &dummy;
  1797.       return find_stack_direction ();
  1798.     }
  1799.   else
  1800.     return (&dummy > addr) ? 1 : -1;
  1801. }
  1802. main ()
  1803. {
  1804.   exit (find_stack_direction() < 0);
  1805. }
  1806. EOF
  1807. eval $ac_link
  1808. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1809.   ac_cv_c_stack_direction=1
  1810. else
  1811.   ac_cv_c_stack_direction=-1
  1812. fi
  1813. fi
  1814. rm -fr conftest*
  1815. fi
  1816.  
  1817. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1818. cat >> confdefs.h <<EOF
  1819. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1820. EOF
  1821.  
  1822. fi
  1823.  
  1824. ac_header_dirent=no
  1825. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1826. do
  1827. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1828. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1829. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1830.   echo $ac_n "(cached) $ac_c" 1>&6
  1831. else
  1832.   cat > conftest.$ac_ext <<EOF
  1833. #line 1834 "configure"
  1834. #include "confdefs.h"
  1835. #include <sys/types.h>
  1836. #include <$ac_hdr>
  1837. int main() { return 0; }
  1838. int t() {
  1839. DIR *dirp = 0;
  1840. ; return 0; }
  1841. EOF
  1842. if eval $ac_compile; then
  1843.   rm -rf conftest*
  1844.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1845. else
  1846.   rm -rf conftest*
  1847.   eval "ac_cv_header_dirent_$ac_safe=no"
  1848. fi
  1849. rm -f conftest*
  1850.  
  1851. fi
  1852. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1853.   echo "$ac_t""yes" 1>&6
  1854.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1855.   cat >> confdefs.h <<EOF
  1856. #define $ac_tr_hdr 1
  1857. EOF
  1858.  ac_header_dirent=$ac_hdr; break
  1859. else
  1860.   echo "$ac_t""no" 1>&6
  1861. fi
  1862. done
  1863. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1864. if test $ac_header_dirent = dirent.h; then
  1865. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1866. ac_lib_var=`echo dir | tr '.-/+' '___p'`
  1867. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1868.   echo $ac_n "(cached) $ac_c" 1>&6
  1869. else
  1870.   ac_save_LIBS="$LIBS"
  1871. LIBS="-ldir  $LIBS"
  1872. cat > conftest.$ac_ext <<EOF
  1873. #line 1874 "configure"
  1874. #include "confdefs.h"
  1875.  
  1876. int main() { return 0; }
  1877. int t() {
  1878. opendir()
  1879. ; return 0; }
  1880. EOF
  1881. if eval $ac_link; then
  1882.   rm -rf conftest*
  1883.   eval "ac_cv_lib_$ac_lib_var=yes"
  1884. else
  1885.   rm -rf conftest*
  1886.   eval "ac_cv_lib_$ac_lib_var=no"
  1887. fi
  1888. rm -f conftest*
  1889. LIBS="$ac_save_LIBS"
  1890.  
  1891. fi
  1892. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1893.   echo "$ac_t""yes" 1>&6
  1894.   LIBS="$LIBS -ldir"
  1895. else
  1896.   echo "$ac_t""no" 1>&6
  1897. fi
  1898.  
  1899. else
  1900. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1901. ac_lib_var=`echo x | tr '.-/+' '___p'`
  1902. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1903.   echo $ac_n "(cached) $ac_c" 1>&6
  1904. else
  1905.   ac_save_LIBS="$LIBS"
  1906. LIBS="-lx  $LIBS"
  1907. cat > conftest.$ac_ext <<EOF
  1908. #line 1909 "configure"
  1909. #include "confdefs.h"
  1910.  
  1911. int main() { return 0; }
  1912. int t() {
  1913. opendir()
  1914. ; return 0; }
  1915. EOF
  1916. if eval $ac_link; then
  1917.   rm -rf conftest*
  1918.   eval "ac_cv_lib_$ac_lib_var=yes"
  1919. else
  1920.   rm -rf conftest*
  1921.   eval "ac_cv_lib_$ac_lib_var=no"
  1922. fi
  1923. rm -f conftest*
  1924. LIBS="$ac_save_LIBS"
  1925.  
  1926. fi
  1927. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1928.   echo "$ac_t""yes" 1>&6
  1929.   LIBS="$LIBS -lx"
  1930. else
  1931.   echo "$ac_t""no" 1>&6
  1932. fi
  1933.  
  1934. fi
  1935.  
  1936. echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  1937. ac_lib_var=`echo nsl | tr '.-/+' '___p'`
  1938. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1939.   echo $ac_n "(cached) $ac_c" 1>&6
  1940. else
  1941.   ac_save_LIBS="$LIBS"
  1942. LIBS="-lnsl  $LIBS"
  1943. cat > conftest.$ac_ext <<EOF
  1944. #line 1945 "configure"
  1945. #include "confdefs.h"
  1946.  
  1947. int main() { return 0; }
  1948. int t() {
  1949. gethostname()
  1950. ; return 0; }
  1951. EOF
  1952. if eval $ac_link; then
  1953.   rm -rf conftest*
  1954.   eval "ac_cv_lib_$ac_lib_var=yes"
  1955. else
  1956.   rm -rf conftest*
  1957.   eval "ac_cv_lib_$ac_lib_var=no"
  1958. fi
  1959. rm -f conftest*
  1960. LIBS="$ac_save_LIBS"
  1961.  
  1962. fi
  1963. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1964.   echo "$ac_t""yes" 1>&6
  1965.   LIBS="$LIBS -lnsl"
  1966. else
  1967.   echo "$ac_t""no" 1>&6
  1968. fi
  1969.  
  1970. echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  1971. ac_lib_var=`echo socket | tr '.-/+' '___p'`
  1972. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1973.   echo $ac_n "(cached) $ac_c" 1>&6
  1974. else
  1975.   ac_save_LIBS="$LIBS"
  1976. LIBS="-lsocket  $LIBS"
  1977. cat > conftest.$ac_ext <<EOF
  1978. #line 1979 "configure"
  1979. #include "confdefs.h"
  1980.  
  1981. int main() { return 0; }
  1982. int t() {
  1983. setsockopt()
  1984. ; return 0; }
  1985. EOF
  1986. if eval $ac_link; then
  1987.   rm -rf conftest*
  1988.   eval "ac_cv_lib_$ac_lib_var=yes"
  1989. else
  1990.   rm -rf conftest*
  1991.   eval "ac_cv_lib_$ac_lib_var=no"
  1992. fi
  1993. rm -f conftest*
  1994. LIBS="$ac_save_LIBS"
  1995.  
  1996. fi
  1997. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1998.   echo "$ac_t""yes" 1>&6
  1999.   LIBS="$LIBS -lsocket"
  2000. else
  2001.   echo "$ac_t""no" 1>&6
  2002. fi
  2003.  
  2004. trap '' 1 2 15
  2005. cat > confcache <<\EOF
  2006. # This file is a shell script that caches the results of configure
  2007. # tests run on this system so they can be shared between configure
  2008. # scripts and configure runs.  It is not useful on other systems.
  2009. # If it contains results you don't want to keep, you may remove or edit it.
  2010. #
  2011. # By default, configure uses ./config.cache as the cache file,
  2012. # creating it if it does not exist already.  You can give configure
  2013. # the --cache-file=FILE option to use a different cache file; that is
  2014. # what configure does when it calls configure scripts in
  2015. # subdirectories, so they share the cache.
  2016. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2017. # config.status only pays attention to the cache file if you give it the
  2018. # --recheck option to rerun configure.
  2019. #
  2020. EOF
  2021. # Ultrix sh set writes to stderr and can't be redirected directly,
  2022. # and sets the high bit in the cache file unless we assign to the vars.
  2023. (set) 2>&1 |
  2024.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2025.   >> confcache
  2026. if cmp -s $cache_file confcache; then
  2027.   :
  2028. else
  2029.   if test -w $cache_file; then
  2030.     echo "updating cache $cache_file"
  2031.     cat confcache > $cache_file
  2032.   else
  2033.     echo "not updating unwritable cache $cache_file"
  2034.   fi
  2035. fi
  2036. rm -f confcache
  2037.  
  2038. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2039.  
  2040. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2041. # Let make expand exec_prefix.
  2042. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2043.  
  2044. # Any assignment to VPATH causes Sun make to only execute
  2045. # the first set of double-colon rules, so remove it if not needed.
  2046. # If there is a colon in the path, we need to keep it.
  2047. if test "x$srcdir" = x.; then
  2048.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2049. fi
  2050.  
  2051. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2052.  
  2053. # Transform confdefs.h into DEFS.
  2054. # Protect against shell expansion while executing Makefile rules.
  2055. # Protect against Makefile macro expansion.
  2056. cat > conftest.defs <<\EOF
  2057. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  2058. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2059. s%\[%\\&%g
  2060. s%\]%\\&%g
  2061. s%\$%$$%g
  2062. EOF
  2063. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2064. rm -f conftest.defs
  2065.  
  2066.  
  2067. # Without the "./", some shells look in PATH for config.status.
  2068. : ${CONFIG_STATUS=./config.status}
  2069.  
  2070. echo creating $CONFIG_STATUS
  2071. rm -f $CONFIG_STATUS
  2072. cat > $CONFIG_STATUS <<EOF
  2073. #! /bin/sh
  2074. # Generated automatically by configure.
  2075. # Run this file to recreate the current configuration.
  2076. # This directory was configured as follows,
  2077. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2078. #
  2079. # $0 $ac_configure_args
  2080. #
  2081. # Compiler output produced by configure, useful for debugging
  2082. # configure, is in ./config.log if it exists.
  2083.  
  2084. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2085. for ac_option
  2086. do
  2087.   case "\$ac_option" in
  2088.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2089.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2090.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2091.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2092.     echo "$CONFIG_STATUS generated by autoconf version 2.7"
  2093.     exit 0 ;;
  2094.   -help | --help | --hel | --he | --h)
  2095.     echo "\$ac_cs_usage"; exit 0 ;;
  2096.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2097.   esac
  2098. done
  2099.  
  2100. ac_given_srcdir=$srcdir
  2101. ac_given_INSTALL="$INSTALL"
  2102.  
  2103. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2104. EOF
  2105. cat >> $CONFIG_STATUS <<EOF
  2106.  
  2107. # Protect against being on the right side of a sed subst in config.status.
  2108. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2109.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2110. $ac_vpsub
  2111. $extrasub
  2112. s%@CFLAGS@%$CFLAGS%g
  2113. s%@CPPFLAGS@%$CPPFLAGS%g
  2114. s%@CXXFLAGS@%$CXXFLAGS%g
  2115. s%@DEFS@%$DEFS%g
  2116. s%@LDFLAGS@%$LDFLAGS%g
  2117. s%@LIBS@%$LIBS%g
  2118. s%@exec_prefix@%$exec_prefix%g
  2119. s%@prefix@%$prefix%g
  2120. s%@program_transform_name@%$program_transform_name%g
  2121. s%@bindir@%$bindir%g
  2122. s%@sbindir@%$sbindir%g
  2123. s%@libexecdir@%$libexecdir%g
  2124. s%@datadir@%$datadir%g
  2125. s%@sysconfdir@%$sysconfdir%g
  2126. s%@sharedstatedir@%$sharedstatedir%g
  2127. s%@localstatedir@%$localstatedir%g
  2128. s%@libdir@%$libdir%g
  2129. s%@includedir@%$includedir%g
  2130. s%@oldincludedir@%$oldincludedir%g
  2131. s%@infodir@%$infodir%g
  2132. s%@mandir@%$mandir%g
  2133. s%@PROGS@%$PROGS%g
  2134. s%@CC@%$CC%g
  2135. s%@CPP@%$CPP%g
  2136. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2137. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2138. s%@RTAPELIB@%$RTAPELIB%g
  2139. s%@LIBOBJS@%$LIBOBJS%g
  2140. s%@FNMATCH@%$FNMATCH%g
  2141. s%@ALLOCA@%$ALLOCA%g
  2142.  
  2143. CEOF
  2144. EOF
  2145. cat >> $CONFIG_STATUS <<EOF
  2146.  
  2147. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2148. EOF
  2149. cat >> $CONFIG_STATUS <<\EOF
  2150. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2151.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2152.   case "$ac_file" in
  2153.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2154.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2155.   *) ac_file_in="${ac_file}.in" ;;
  2156.   esac
  2157.  
  2158.   # Adjust relative srcdir, etc. for subdirectories.
  2159.  
  2160.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2161.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2162.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2163.     # The file is in a subdirectory.
  2164.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2165.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2166.     # A "../" for each directory in $ac_dir_suffix.
  2167.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2168.   else
  2169.     ac_dir_suffix= ac_dots=
  2170.   fi
  2171.  
  2172.   case "$ac_given_srcdir" in
  2173.   .)  srcdir=.
  2174.       if test -z "$ac_dots"; then top_srcdir=.
  2175.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2176.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2177.   *) # Relative path.
  2178.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2179.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2180.   esac
  2181.  
  2182.   case "$ac_given_INSTALL" in
  2183.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2184.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2185.   esac
  2186.   echo creating "$ac_file"
  2187.   rm -f "$ac_file"
  2188.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2189.   case "$ac_file" in
  2190.   *Makefile*) ac_comsub="1i\\
  2191. # $configure_input" ;;
  2192.   *) ac_comsub= ;;
  2193.   esac
  2194.   sed -e "$ac_comsub
  2195. s%@configure_input@%$configure_input%g
  2196. s%@srcdir@%$srcdir%g
  2197. s%@top_srcdir@%$top_srcdir%g
  2198. s%@INSTALL@%$INSTALL%g
  2199. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2200. fi; done
  2201. rm -f conftest.subs
  2202.  
  2203.  
  2204.  
  2205. exit 0
  2206. EOF
  2207. chmod +x $CONFIG_STATUS
  2208. rm -fr confdefs* $ac_clean_files
  2209. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2210.  
  2211.